home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / AHDI / SYQUEST / SQHDX / HDX.FLO < prev    next >
Encoding:
Text File  |  2001-02-09  |  3.5 KB  |  115 lines

  1. 11/05/87    10:26 am
  2. 11/16/87    10:14 am    update
  3.  
  4. Format
  5. ======
  6. - Give generic warning which includes the message that system will reboot 
  7.   after this operation.
  8. - Inquire physical unit number (0-7) from user.
  9. - Inquire disk type (MEGAFILE 40, SH204, etc...) from user.
  10. - Get format parameters from wincap.
  11. - Attempt to read bad sector list into memory.  If it fails, create one.
  12. - Format the disk (including set mode, etc...).
  13. - Destructively markbad the entire device.
  14.   - Write different kinds of data and read them back. eg. all 1's, all 0's,
  15.     alternating 10's and alternating 01's. (etc...)
  16. - Add new bad sectors into the Vendor Bad Sector List, update the counter for
  17.   bad sectors.
  18. - Install the format parameters into root sector.
  19. - Partition the disk with the default scheme (or let them pick?).
  20. - Install bad sector list at physical (unit) sector 1.
  21. - Set the system to reboot.
  22.  
  23. Related files:
  24. --------------
  25. - bootsect.s
  26. - bootstop.s
  27. - fmt.c
  28. - hdx.c
  29. - rootsect.s
  30.  
  31.  
  32.  
  33. Partition
  34. =========
  35. - Give generic warning including that the system will reboot afterwards.
  36. - Inquire logical unit number (C:-P:) from the user.
  37. - Inquire partition scheme from the user.
  38. - Calculate and set the parameters for all partitions.
  39. - Write partition headers.  Check from the bad sector list and make sure that 
  40.   they do not lie on any bad sectors.  If any of them does, adjust the sizes 
  41.   of the adjacent partition(s) to move the header(s) to a clean chunk.
  42. - Zero the FATs and Root Dir.
  43. - Update FAT tables about bad sectors using the bad sector list.
  44. - Set the system to reboot.
  45.  
  46. To be considered:
  47. -----------------
  48. - Menu of partition schemes.  Show only those that are legal and appropiate,
  49.   or disable those that are illegal.
  50. - Check if new scheme is the same as current one.  If so, skip the calculation
  51.   part? 
  52.  
  53. Related files:
  54. --------------
  55. - epart.c
  56. - hdx.c
  57. - part.c
  58. - sect.c
  59.  
  60.  
  61.  
  62. Zero
  63. ====
  64. - Give generic warning.
  65. - Inquire logical unit number from the user.
  66. - Clean up FATs and Root Dir of drive.
  67. - Force media change.
  68.  
  69. Related files:
  70. --------------
  71. - hdx.c
  72. - sect.c
  73. - zero.c
  74.  
  75.  
  76.  
  77. Markbad (Non-destructive)
  78. =========================
  79. - Give generic warning.
  80. - Inquire logical unit number from the user.
  81. - Allocate the biggest buffer possible (make that as BUFSIZ).
  82. - Try to read BUFSIZE sectors from the drive.  If fails, read the chunk over
  83.   again one sector at a time to narrow down which sector(s) is/are bad.
  84. - Add the non-readable sectors to User Bad Sector List.
  85. - Mark the bad sectors in FATs.
  86.   - For each bad sector;
  87.     determine whether it has been allocated to a file;
  88.     if it has been allocated to a file
  89.         find out what file it belongs to;
  90.     determine whether it is a subdirectory or a regular file;
  91.     if it is a regular file
  92.         ask user if they want to delete the file, skip over the bad sector
  93.         or ignore the bad sector, and do that;
  94.     if it is a subdirectory
  95.         ask user if they want to skip over the bad sector or ignore it;
  96.         if they want to skip over the bad sector
  97.         find a free cluster on ?:;
  98.         make a sector of deleted files' directory entries;
  99.         determine if bad sector is 1st or 2nd sector of a cluster;
  100.         write the sector of deleted files' directory entries in place
  101.           of the bad sector in the free cluster found;
  102.         write the undamaged sector from original cluster to the appro-
  103.            piate sector in the free cluster found;
  104.         determine whether bad sector resides in starting cluster;
  105.  
  106.         
  107.     
  108. - Force media change.
  109.  
  110. Related files:
  111. --------------
  112. - hdx.c
  113. - markbad.c
  114. - sect.c
  115.